package com.qf.config;

import org.apache.shardingsphere.elasticjob.api.JobConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * 任务执行周期
 */
@Component
public class JobConfig {


    @Bean
    public JobConfiguration myJobConfiguration(){
        return JobConfiguration.newBuilder("myJob",3).cron("0/5 * * * * ?").build();
    }
}
